package com.chat.business;

import com.chat.data.UserInfoDetItem;
import com.uday.frmwrk.data.BaseRequestItem;
import com.uday.frmwrk.data.BaseResponseItem;
import com.uday.frmwrk.service.FlexSessionActivity;

public class RegisterUserActivity extends FlexSessionActivity {

	public boolean process(BaseRequestItem objBaseRequestItem,
			BaseResponseItem objBaseResponseItem) throws Exception {
		UserInfoDetItem objUserInfoItem = (UserInfoDetItem) objBaseRequestItem
				.getObjReqData();

		Object retObj = getSqlMapClientTemplate().insert("registerUser",
				objUserInfoItem);
		//objUserInfoItem.setLngDBUserID((Long) retObj);
		getSqlMapClientTemplate().insert("addLoginInfo", objUserInfoItem);
		return true;
	}

}
